import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import Classic from '@/components/classic/Classic'
import GroupBuying from '@/components/groupbuying/GroupBuying'
import Mine from '@/components/mine/Mine'
import Brand from '@/components/brand/Brand'
import Login from '@/components/login/Login'
import Register from '@/components/login/register'
import Shopcart from '@/components/shopcart/Shopcart'
import Detalis from '@/components/detalis/Detalis'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/classic',
      name: 'Classic',
      component: Classic
    },
    {
      path: '/groupbuying',
      name: 'GroupBuying',
      component: GroupBuying
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/brand',
      name: 'Brand',
      component: Brand
    },
    {
      path:'/login',
      name:'Login',
      component:Login
    },
    {
      path:'/register',
      name:'Register',
      component:Register
    },
    {
      path:'/shopcart',
      name:'Shopcart',
      component:Shopcart
    },
    {
      path:'/detalis',
      name:'Detalis',
      component:Detalis
    }
  ]
})
